package top.dreamcenter.ai.mcp.config;

import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import top.dreamcenter.ai.mcp.tool.DemoTool;

@Configuration
public class ToolRegisterConfig {

    @Bean
    public ToolCallbackProvider demoTools(DemoTool demoTool) {
        return MethodToolCallbackProvider.builder().toolObjects(demoTool).build();
    }

}
